<?php

declare(strict_types=1);

namespace App\Model;


/**
 * @property int $id ID
 * @property int $userid 用户ID
 * @property int $room_id 房间ID
 * @property int $live_date 直播日期
 * @property int $live_time 直播时长
 * @property int $start_time 开始时间
 * @property int $end_time 结束时间
 * @property int $gift_income 礼物收入
 * @property int $max_online 最高在线
 * @property int $total_users 累计用户
 * @property int $total_views 累计观看次数
 * @property int $update_time 更新时间
 */
class LiveSession extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'live_session';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'userid', 'room_id', 'live_date', 'live_time', 'start_time', 'end_time', 'gift_income', 'max_online', 'total_users', 'total_views', 'update_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'userid' => 'integer', 'room_id' => 'integer', 'live_date' => 'integer', 'live_time' => 'integer', 'start_time' => 'integer', 'end_time' => 'integer', 'gift_income' => 'integer', 'max_online' => 'integer', 'total_users' => 'integer', 'total_views' => 'integer', 'update_time' => 'integer'];
}
